<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.w3.org/1999/xhtml">
<!--博客首页-->

<head th:replace="_fragments :: head(~{::title})">
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>LinYD的博客</title>
    <link rel="stylesheet" href="../static/css/semantic.min.css" th:href="@{/css/semantic.min.css}">
    <link rel="stylesheet" href="../static/css/me.css" >
    <linK rel="shortcut icon" href="/static/images/favicon.ico">

<!--    <link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/aplayer@1.10.1/dist/APlayer.min.css">-->

    <link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/aplayer/dist/APlayer.min.css">

</head>
<body>



    <!--导航-->      <!--inverted 反转  反色-->
    <nav th:replace="_fragments :: menu(1)" class="ui inverted attached segment m-padded-tb-mini">   <!--引入m-padded-tb-mini  在me.css中自定义导航栏-->
        <div class="ui container">          <!--让logo不那么靠左边-->
            <div class="ui inverted secondary stackable menu">     <!--stackable可堆叠 响应手机端 APP访问-->
                <h2 class="ui blue header item">LinYD</h2>    <!--导航栏上的logo -->
                <!--m-mobile-hide手机端隐藏-->
                <a href="#" class="m-item item m-mobile-hide"><i class="home icon"></i> 首页</a>   <!--<i class="home icon"></i>在条目前加上相应的图标-->
                <a href="#" class="m-item item m-mobile-hide"><i class="idea icon"></i> 分类</a>
                <a href="#" class="m-item item m-mobile-hide"><i class="tags icon"></i> 标签</a>
                <a href="#" class="m-item item m-mobile-hide"><i class="time icon"></i> 归档</a>
                <a href="#" class="m-item item m-mobile-hide"><i class="info icon"></i> 关于我</a>

                <div class="right m-item item m-mobile-hide">   <!--right item 让此条目靠右-->
                    <div class="ui icon inverted transparent input">   <!--transparent 设置透明-->
                        <input type="text" placeholder="Search.....">   <!--搜索框-->
                        <i class="search link icon"></i>
                    </div>
                </div>

                <div class="right m-item item m-mobile-hide">   <!--right item 让此条目靠右-->
                    <a href="#" class="item"><i class=" user icon"></i>登录</a>
                    </div>
                </div>


            </div>
        </div>
        <a href="#" class="ui menu toggle black icon button m-right-top m-mobile-show">  <!--m-right-top 将此按钮定义到右上-->  <!--m-mobile-show pc端隐藏 app展示-->
            <i class="sidebar icon"></i>
        </a>

    </nav>




    <!--首页欢迎模块-->
    <div class="frosted-glass">
        <!--pre标签 保留空格和换行符-->
        <pre>
            <h1 class="tit neon">欢迎来LinYD的博客
            <br>     下滑查看<i class="angle double down icon"></i></h1>
        </pre>

    </div>





    <!--中间内容-->
    <div class="m-container m-padded-tb-big">
         <div class="ui container">    <!--container容器，用来包裹一些元素，使得布局更美观-->
             <div class="ui stackable grid ">
                 <!--左边布局-->
                 <div class="eleven wide column">
                     <!--左边头部-->
                     <div class="ui top attached segment"> <!--top attached 和 attached可以让头部和列表连接起来-->
                         <div class="ui middle aligned two column grid">   <!--两列-->  <!--middle aligned 垂直方向居中-->
                             <div class="column">
                                <h3 class="ui black header">博客</h3>
                            </div>

                             <div class="right aligned column">
                                 共 <h2 class="ui black header m-inline-block m-text-thin" th:text="${page.totalElements}">10</h2> 篇   <!--m-inline-block定义不换行-->
                             </div>
                         </div>
                     </div>

                     <!--左边列表  博客文章 中间内容-->
                     <div class="ui attached segment">
                         <div class="ui m-padded-tb-big vertical segment m-padded-tb-big" th:each="blog : ${page.content}">
                             <div class="ui middle aligned mobile reversed stackable grid" >     <!--mobile reversedAPP访问 顺序反转，图片在前-->
                                 <div class="eleven wide column">
                                    <h3 class="ui header"><a href="#" th:href="@{/blog/{id}(id=${blog.id})}" target="_blank" class="m-black" th:text="${blog.title}">Java面试热门八股文</a></h3>
                                     <p class="m-text" th:text="|${blog.description}......|">Java高频面试题，帮助你轻松回答面试官的问题，提高拿offer的成功率Java高频面试题，
                                         帮助你轻松回答面试官的问题，提高拿offer的成功率Java高频面试题......</p>

                                     <div class="ui grid">
                                         <div class="ui eleven wide column">
                                             <div class="ui horizontal link list">
                                                 <div class="item">
                                                     <img src="../static/images/tou%20xiang.jpg" th:src="@{/images/tou%20xiang.jpg}"  alt="" class="ui avatar image">
                                                     <div class="content"><a href="#" class="header" th:text="${blog.user.nickname}">林耀东</a></div>   <!--作者-->
                                                 </div>
                                                 <div class="item">
                                                     <i class="calendar icon"></i><span th:text="${#dates.format(blog.updateTime,'yyyy-MM-dd')}">2022-5-3</span>    <!--发表时间-->
                                                 </div>
                                                 <div class="item">
                                                     <i class="eye icon"></i><span th:text="${blog.views}">5 </span>         <!--浏览次数-->
                                                 </div>
                                             </div>
                                         </div>
                                         <div class="ui right aligned five wide column">
                                             <a href="#" target="_blank" class="ui blue m-padded-mini label" th:text="${blog.type.name}">Java面试</a>
                                         </div>
                                     </div>
                                 </div>

                                 <div class="five wide column">
                                    <a href="#" th:herf="@{/blog/{id}{id=${blog.id}}}" target="_blank">
                                        <img src="https://picsum.photos/id/191/800/550" th:src="@{${blog.firstPicture}}" alt="" class="ui rounded image">
                                    </a>
                                 </div>
                             </div>
                         </div>
                     </div>

                     <!--左边列表 底部按钮(翻页-上一页-下一页)-->
                     <div class="ui bottom attached segment" th:if="${page.totalPages}>1">
                         <div class="ui middle aligned two column grid">   <!--两列-->  <!--middle aligned 垂直方向居中-->
                             <div class="column">
                                 <a href="#" th:href="@{/(page=${page.number}-1)}" th:unless="${page.first}" class="ui blue basic button">上一页</a>
                             </div>

                             <div class="right aligned column">
                                 <a href="#" th:href="@{/(page=${page.number}+1)}" th:unless="${page.last}" class="ui blue basic button">下一页</a>
                             </div>
                         </div>

                 </div>
                 </div>

                 <!--右边布局-->
                 <div class="five wide column">
                     <!--右边小栏目 显示个人信息-->
                     <div class="ui center aligned segment">
                         <img src="../static/images/tou%20xiang.jpg" th:src="@{/images/tou%20xiang.jpg}" class="img-avatar" />

                         <h2 class="blog-nickname neon">LinYD</h2>
                         <p class="blog-introduce">谢谢你来过我的博客</p>
                         <p class="blog-location"><i class="location arrow icon"></i>福建 - 莆田</p>

                         <hr/>

                         <button id="payButton" class="ui teal basic circular button"><i class="comments icon"></i>微信</button>

                         <div class="ui payQ flowing popup transition hidden">
                             <div class="ui basic label">
                                 <div class="ui images">
                                     <div class="image">
                                         <img src="../static/images/wechat.jpg" th:src="@{/images/wechat.jpg}"  alt="" class="ui fluid rounded bordered image" style="width: 80px">
                                     </div>

                                 </div>
                             </div>
                         </div>
                     </div>


                     <!--分类-->
                    <div class="ui segments m-margin-top-large">
                        <div class="ui secondary segment">
                            <div class="ui two column grid">
                                <div class="column"><i class="idea icon"></i>分类</div>
                                <div class="right aligned column">
                                    <a href="#" th:href="@{types/-1}"  target="_blank">更多<i class="angle double right icon"></i></a>
                                </div>
                            </div>
                        </div>
                        <div class="ui blue segment">
                            <div class="ui fluid vertical menu" >   <!--fluid填充-->
                                <a href="#"  th:href="@{/types/{id}(id=${type.id})}" target="_blank" class="item"  th:each="type : ${types}">
                                    <span th:text="${type.name}">学习笔记</span>
                                    <div class="ui blue left pointing label" th:text="${#arrays.length(type.blogs)}">5</div>
                                </a>


                            </div>

                        </div>
                    </div>

                     <!--标签-->
                     <div class="ui segments m-margin-top-large">
                         <div class="ui secondary segment">
                             <div class="ui two column grid">
                                 <div class="column"><i class="tags icon"></i>标签</div>
                                 <div class="right aligned column">
                                     <a href="#" th:href="@{tags/-1}"  target="_blank">更多<i class="angle double right icon"></i></a>
                                 </div>
                             </div>
                         </div>
                         <div class="ui teal segment">
                             <a href="#" th:href="@{/tags/{id}(id=${tag.id})}" target="_blank" class="ui teal left pointing label m-margin-tb-tiny" th:each="tag : ${tags}">
                                 <span th:text="${tag.name}">Java</span> <div class="detail" th:text="${#arrays.length(tag.blogs)}">5</div>
                             </a>


                         </div>
                     </div>

                     <!--最新推荐-->
                     <div class="ui segments m-margin-top-large">
                         <div class="ui secondary segment">
                                 <i class="file alternate outline icon"></i>最新推荐
                         </div>
                         <div class="ui segment" th:each="blog : ${recommendBlogs}">
                             <a href="#" th:href="@{/blog/{id}(id=${blog.id})}" target="_blank" th:text="${blog.title}" class="a-text-color2">Java基础</a>
                         </div>
                     </div>

                     <!--二维码-->
                     <h4 class="ui horizontal divider header m-margin-top-large">扫码关注我</h4>
                     <div class="ui centered card" style="width: 10em">    <!--centered居中放置二维码-->
                         <img src="../static/images/wechat.jpg"  th:src="@{/images/wechat.jpg}" alt="" class="ui rounded image" >
                     </div>
                 </div>

             </div>
         </div>
        <br>
        <br>
        <br>

    </div>


<!--    <div id="my-aplayer"-->

<!--         class="aplayer m-aplayer"-->

<!--         data-id="7552878100"-->

<!--         data-server="netease"-->

<!--         data-type="playlist"-->

<!--         data-fixed="true"-->

<!--         data-autoplay="false"-->

<!--         data-order="list"-->

<!--         data-volume="0.55"-->

<!--         data-theme="#cc543a"-->

<!--         data-preload="auto"-->

<!--    ></div>-->

    <!--网易云播放器-->
    <div class="aplayer"
         data-id="7552878100"
         data-server="netease"
         data-type="playlist"
         data-fixed="true"
         data-autoplay="true"
         data-volume="0.6" >

    </div>




    <!--底部footer-->
    <footer th:replace="_fragments :: footer" class="ui inverted vertical segment m-padded-tb-massive">  <!--m-padded-tb-massive  自定义底部宽度-->
        <div class="ui center aligned container">
            <div class="ui inverted divided stackable grid">  <!--布局 列-->   <!--divided 列分割线-->
                <div class="three wide column">
                    <div class="ui inverted link list">
                        <div class="item">
                            <img src="../static/images/night.jpg"   class="ui rounded image" alt="" style="width: 120px">   <!--设置底部微信二维码-->
                        </div>
                    </div>
                </div>

                <div class="three wide column">
                    <h4 class="ui inverted header m-text-thin m-text-spaced ">最新通知</h4>
                    <div class="ui inverted link list">
                        <a href="#" class="item">评论功能目前还未完善</a>
                        <a href="#" class="item">后续会开放评论功能</a>
                        <a href="#" class="item">敬请期待！</a>
                    </div>
                </div>

                <div class="three wide column">
                    <h4 class="ui inverted header m-text-thin m-text-spaced ">联系我</h4>
                    <div class="ui inverted link list">
                        <a href="#" class="item">Email：940951719@qq.com</a>
                        <a href="#" class="item">QQ：940951719</a>
                        <a href="#" class="item">Wechat：Lyd_2166</a>
                    </div>
                </div>

                <div class="seven wide column">
                    <h4 class="ui inverted header m-text-thin m-text-spaced ">LinYD</h4>
                    <p class="m-text-thin m-text-spaced m-opacity-mini">这是我的个人博客，用来分享我的一些编程学习笔记和心得等内容，希望这些内容对看到的人有所帮助</p>

                </div>

            </div>
            <div class="ui inverted section divider"></div>   <!--底部分割线-->
            <a href="https://beian.miit.gov.cn/?spm=5176.13841030.J_9220772140.106.6c516fc4N7N96n#/Integrated/index" target="_blank" class="a-text-color">闽ICP备2022007931号</a>
            <p class="m-text-thin m-text-spaced m-opacity-mini">Copyright@2022-2023 LinYD Designed by LinYD</p>
        </div>

    </footer>

    <!--/*/<th:block th:replace="_fragments :: script">/*/-->
    <script src="../static/lib/jQuery/jQuery.js" th:src="@{/lib/jQuery/jQuery.js}"></script>
    <script src="../static/lib/semantic/semantic.min.js" th:src="@{/lib/semantic/semantic.min.js}"></script>

<!--    <script src="https://cdn.jsdelivr.net/npm/aplayer@1.10.1/dist/APlayer.min.js"></script>-->
<!--    <script src="https://cdn.jsdelivr.net/npm/meting@1.2.0/dist/Meting.min.js"></script>-->
    <script>var meting_api='https://api.mizore.cn/meting/api.php?server=:server&type=:type&id=:id'</script>
    <script src="https://cdn.jsdelivr.net/npm/aplayer@1.10.1/dist/APlayer.min.js"></script>
    <script src="https://cdn.jsdelivr.net/npm/meting@1.2.0/dist/Meting.min.js"></script>






    <!--/*/</th:block>/*/-->

    <!--点击事件，在手机端点击按钮后显示原本隐藏的目录-->
    <script type="text/javascript">
        $('.menu.toggle').click(function (){
           $('.m-item').toggleClass('m-mobile-hide');
        });
        $('#payButton').popup({
            popup : $('.payQ.popup'),
            on : 'click',
            position : 'bottom center'
        });


        <!--鼠标点击出现爱心特效-->
        (function (window, document, undefined) {
            let hearts = [];
            window.requestAnimationFrame = (function () {
                return window.requestAnimationFrame || window.webkitRequestAnimationFrame || window.mozRequestAnimationFrame || window.oRequestAnimationFrame || window.msRequestAnimationFrame ||
                    function (callback) {
                        setTimeout(callback, 1000);
                    }
            })();
            init();

            function init() {
                cssFun(".heart{width: 10px;height: 10px;position: fixed;background: #f00;transform: rotate(45deg);-webkit-transform: rotate(45deg);-moz-transform: rotate(45deg);}.heart:after,.heart:before{content: '';width: inherit;height: inherit;background: inherit;border-radius: 50%;-webkit-border-radius: 50%;-moz-border-radius: 50%;position: absolute;}.heart:after{top: -5px;}.heart:before{left: -5px;}");
                attachEvent();
                gameloop();
            }

            function gameloop() {
                for (let i = 0; i < hearts.length; i++) {
                    if (hearts[i].alpha <= 0) {
                        document.body.removeChild(hearts[i].el);
                        hearts.splice(i, 1);
                        continue;
                    }
                    hearts[i].y--;
                    hearts[i].scale += 0.004;
                    hearts[i].alpha -= 0.013;
                    hearts[i].el.style.cssText = "left:" + hearts[i].x + "px;top:" + hearts[i].y + "px;opacity:" + hearts[i].alpha + ";transform:scale(" + hearts[i].scale + "," + hearts[i].scale + ") rotate(45deg);background:" + hearts[i].color;
                }
                requestAnimationFrame(gameloop);
            }

            /**
             * 附加事件.:创建小心心
             */
            function attachEvent() {
                let old = typeof window.onclick === "function" && window.onclick;
                window.onclick = function (event) {
                    old && old();
                    createHeart(event);
                }
            }

            function createHeart(event) {
                let d = document.createElement("div");
                d.className = "heart";
                hearts.push({
                    el: d,
                    x: event.clientX - 5,
                    y: event.clientY - 5,
                    scale: 1,
                    alpha: 1,
                    color: randomColor()
                });
                document.body.appendChild(d);
            }

            function cssFun(css) {
                let style = document.createElement("style");
                style.type = "text/css";
                try {
                    style.appendChild(document.createTextNode(css));
                } catch (ex) {
                    style.styleSheet.cssText = css;
                }
                document.getElementsByTagName('head')[0].appendChild(style);
            }

            /**
             *随机颜色
             */
            function randomColor() {
                return "rgb(" + (~~(Math.random() * 255)) + "," + (~~(Math.random() * 255)) + "," + (~~(Math.random() * 255)) + ")";
            }
        })(window, document);



    </script>
</body>
</html>